package zhr.chapter12;

public class Example12_7 {
    public static void main(String[] args) {
        BreadContainer bc=new BreadContainer(50);
        Producer p1=new Producer(20,bc,"p1");
        Producer p2=new Producer(290,bc,"p2");
        Consumer c1=new Consumer(80,bc,"c1");
        Consumer c2=new Consumer(60,bc,"c2");
        p1.start();
        //p2.start();
        c1.start();
        //c2.start();
    }
}
